package com.haredot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.haredot.entity.Order;
import com.haredot.mapper.OrderMapper;
import com.haredot.service.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = Exception.class)
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {

    @Override
    public Page<Order> queryOrderList(Page<Order> pageVo, Long userId) {
        return this.getBaseMapper().findOrderListByUserId(pageVo, userId);
    }
}
